package com.example.logic.chapter21;

public class SimpleMapperClient {


    public static void main(String[] args) {
        Student student = new Student("张三", 18, 89d);
        String string = SimpleMapper.toString(student);
        System.out.println(string);
    }


    static class Student {
        String name;
        int age;
        Double score;

        public Student(String name, int age, Double score) {
            this.name = name;
            this.age = age;
            this.score = score;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getAge() {
            return age;
        }

        public void setAge(int age) {
            this.age = age;
        }

        public Double getScore() {
            return score;
        }

        public void setScore(Double score) {
            this.score = score;
        }
    }
}
